<template>
  <div class="record-entry">
    <h2>选择记账方式</h2>
    <div class="methods">
      <router-link to="/record/voice" class="method voice">
        <span class="icon">🎤</span>
        <span>语音输入</span>
      </router-link>
      <router-link to="/record/photo" class="method photo">
        <span class="icon">📷</span>
        <span>图片识别</span>
      </router-link>
      <router-link to="/record/drag" class="method drag">
        <span class="icon">🟢</span>
        <span>图标拖拽</span>
      </router-link>
      <router-link to="/record/keyboard" class="method keyboard">
        <span class="icon">🔢</span>
        <span>数字键盘</span>
      </router-link>
    </div>
    <router-link to="/" class="back-btn">返回首页</router-link>
  </div>
</template>

<script setup lang="ts">
// 这里可后续引入交互动画与逻辑
</script>

<style scoped>
.record-entry {
  background: #F9F9F9;
  min-height: 100vh;
  padding: 32px 0 40px 0;
  text-align: center;
}
.methods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin: 32px 0 24px 0;
}
.method {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px #eee;
  width: 120px;
  height: 120px;
  justify-content: center;
  font-size: 18px;
  color: #222;
  text-decoration: none;
  transition: box-shadow 0.2s;
}
.method:active {
  box-shadow: 0 4px 16px #cdebb0;
}
.icon {
  font-size: 36px;
  margin-bottom: 8px;
}
.back-btn {
  display: inline-block;
  margin-top: 32px;
  background: #FF6B6B;
  color: #fff;
  border-radius: 24px;
  padding: 12px 32px;
  font-size: 18px;
  text-decoration: none;
  box-shadow: 0 2px 8px #ffd6d6;
  transition: background 0.2s;
}
.back-btn:active {
  background: #d94a4a;
}
</style>